import java.util.Scanner;

public class Test {
    //题目1
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int h = scan.nextInt();
        int s = 0;
        if(h<=160){
            s = h*10;
        }else{
            s = 160*10+(h-160)*16;
        }
        System.out.println("应发工资为："+s);
    }

}
